package com.zly.framework.rbac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zly.framework.rbac.model.entity.Permission;
import com.zly.framework.rbac.model.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    List<Permission> getAllPermissionsByUserId(User user);
}
